/* 集合属性（主题样式） */
[color-scheme="light"] {
  --color: #213547;
  --background: #ffffff;
  --a-hover-color: #747bff;
  --button-background-color: #f9f9f9;
  --button-hover-border-color: #f9f9f9;

}

[color-scheme="dark"]{
  --color: rgba(255, 255, 255, 0.87);
  --background: #242424;
  --a-hover-color: #535bf2;
  --button-background-color: #1a1a1a;
  --button-hover-border-color: #646cff;
}

/*全局样式及变量*/
:root {
  color: var(--color);
  background-color: var(--background);
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  max-width: available;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;

}

body {
  margin: 0;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;

  a:hover {
    color: var(--a-hover-color);
  }
}


button {
  color: var(--color);
  background-color: var(--button-background-color);

  button:hover {
    border-color: var(--button-hover-border-color);
  }
}


